home *** CD-ROM | disk | FTP | other *** search
/ Univers Mac Interactif 53 / Univers Mac Interactif - Issue 53.iso / UTILITAIRES IMPORTANTS / Player⁄Reader / Sparkle245 folder / (Docs) / ReadMe Sound < prev    next >
Text File  |  1995-07-07  |  5KB  |  89 lines

  1. This version of Sparkle supports sound in a limited fashion. A sound file can be 
  2. associated with an MPEG (or a set of PICTs) and played while the MPEG plays. 
  3. The good news is that part of the support I have is completely fleshed out. 
  4. You can play sound backwards or forwards, at variable rates, and with random access. 
  5. Sound playback is (with the warning about drivers below) continuous even when the 
  6. disk is going beserk pulling data in at 16bits/stereo/44.1kHz. I had a vicious
  7. lesson in what can and can't be done with the mac interrupt system while putting 
  8. this all together but it now all runs beautifully at interrupt level and I can't 
  9. make it crash.
  10.  
  11. But here are the limitations.
  12.  
  13. * AIFF, compressed AIFF and .WAV files are supported. Sparkle will first look 
  14.     for a .AIFF file, if that's unsuccessful for a .AIF file and if that's 
  15.     unsuccessful, for a .WAV file. If there exist any .MPG/.AU combinations 
  16.     out there I could support AU if desired. However I have never seen such a combo.
  17.     .snd files are not, and will not be supprted. They are only designed to support 
  18.     short sounds and trying to force the snd format to handle multi-megabyte sounds 
  19.     is a pointless exercise.
  20.     .WAV support requires Sound Manager 3.1.
  21.  
  22. * Suppose Sparkle is opening a file name.mpg. It will look in the same folder 
  23.     for a file name.AIFF. If it finds such a file, you'll get audio. If it doesn't
  24.     find the file, you'll get no audio. If you are opening a set of pictures 
  25.     called waves.0, waves.1, etc, then again the audio file must be names waves.AIFF
  26.     and must be in the same directory as the picture files.
  27.     This probably is relevant to programs that use Sparkle, like Mosaic or Netscape.
  28.     I don't know how Mosaic/Netscape cope when they find an MPEG/WAV pair at 
  29.     a WWW site. If the Mosaic/Netsca[e authors want to contact me to consider 
  30.     some protocol (apple events or whatever) for handling this, feel free to mail me.
  31.  
  32. * On my Quadra 610, 8bit mono sound at 11KHz works without a hitch. 16bit stereo sound
  33.     at 44.1kHz (sixteen times as much data) works but with a noticable (though 
  34.     not unbearable) slowing down of the video.
  35.     The sound is read in using a funky triple buffering scheme with async IO and 
  36.     async sound. This works beautifully on my mac's internal hard drive. However
  37.     on my Syquest cartridge with the APS 3.05 driver sometimes the sound can stutter.
  38.     As far as I can tell this is because the APS driver does very naughty things 
  39.     like switching off interrupts for long periods of time (at the same time 
  40.     that the sound stops, the mouse also stops moving briefly). 
  41.     If anyone has suggestions/comments on the subject, please let me know. My guess
  42.     is that the only fix is to get APS to release drivers which don't disable
  43.     interrupts for so long.
  44.     Also, of course, since we're using async IO, use SCSI Manager 4.3 for better
  45.     performance.
  46.  
  47. * The .WAV sounds I have tried occasionally have jerks in them. These were recorded 
  48.     in the sound and are not Sparkle's fault. Also the .WAVs I've tried don't 
  49.     seem to sync very well with the video, like the audio was recorded with a slight
  50.     delay relative to the video. Again I can't do much about that.
  51.     
  52. * There is now a menu item, Set Frame Rate ..., under the Playback menu. This allows 
  53.     you to set the frame rate of an MPEG/set of PICTs to what you wish. Note that 
  54.     this only affects video playback, not audio. Note also that when Sparkle opens 
  55.     an MPEG or PICT set with an associated sound file, the duration of the video 
  56.     is scaled to match the duration of the audio. Normally this is what one would 
  57.     want and so you shouldn't need to touch the Set Frame Rate ... option much if you
  58.     have associated sound. If you have an MPEG without sound and it appears to play 
  59.     way too fast, you may want to set the frame rate to something lower.
  60.     
  61. --------------------------------------------------------------------------------------
  62.  
  63. What do you do if you want to play back MPEG audio? 
  64. I had hoped that a program like Sparkle would spontaneously arise to fill the mac 
  65. MPEG audio space. Unfortunately I have been disappointed. 
  66. There are three MPEG audio players that I know of:
  67.     MPEGAud PPC 1.0a9
  68.     MPEG Audio for Macintosh 0.3.2
  69.     MPEG/CD 1.05
  70. However it is difficult to get excited about any of these programs.
  71. They're none of them as fast as one would hope---in fairness MPEG audio like video 
  72. does require some serious CPU work.
  73. Additionally they all have serious user interface problems.
  74.  
  75. Considering specifics, 
  76. * MPEGAud claims to convert a file to an AIFF file. However it leaves out the common
  77. chunk of the AIFF file and so the AIFF file is invalid and many apps (including 
  78. Sparkle) will not be able to read it.
  79. * MPEG Audio for Macintosh outputs snd resource files, not AIFF files. snd files are 
  80. very inappropriate for large sound files for two reasons---they are major pain to 
  81. play asynchronousl, and they are limited in size to less than 16MB.
  82. * MPEG/CD does actually output a valid AIFF file if you ask it to. However its 
  83. user interface can be very confusing.
  84.  
  85. My recommendation would be to go with MPEG/CD and we can hope it's incrementally
  86. improved as time goes by.
  87.  
  88. --------------------------------------------------------------------------------------
  89.